package com.jinarusha.shareprayers.Model;

import java.util.ArrayList;

public class Group {

	private String groupID;
	private ArrayList<AFriend> groupMembers;

	public Group() {
		groupID = "";
		groupMembers = new ArrayList<AFriend>();
	}

	public String getGroupID() {
		return groupID;
	}

	public void setGroupID(String groupTitle) {
		this.groupID = groupTitle;
	}

	public ArrayList<AFriend> getGroupMembers() {
		return groupMembers;
	}

	public void setGroupMember(ArrayList<AFriend> groupmembers) {
		groupMembers = groupmembers;
	}

	public Boolean addMember(AFriend member) {
		return groupMembers.add(member);
	}

	public Boolean removeMember(AFriend member) {
		return groupMembers.remove(member);
	}

	public Boolean hasMember(AFriend member) {
		return groupMembers.contains(member);
	}
}
